package ui.panels.primary.games;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import javax.swing.JList;

/**
 * 
 * @author vladimir && alon
 *
 */
/*class KeyJList implements KeyListener
{
	private JList<String> jlist = null;
	private GamesPanel gamesPanel = null;
	
	KeyJList(GamesPanel panel ,JList<String> jlist)
	{
		this.gamesPanel = panel;
		this.jlist = jlist;
	}
	
	public void keyPressed(KeyEvent arg0){}

	
	public void keyReleased(KeyEvent key) {
		// case Enter
		if(key.getKeyCode() == KeyEvent.VK_ENTER)
		{
			int index = jlist.getSelectedIndex();
				 
			// call to function that do the rest
			gamesPanel.executeListGame(jlist, index + 1);
		}
	}

	public void keyTyped(KeyEvent arg0) {}
}
*/